home *** CD-ROM | disk | FTP | other *** search
/ Nebula 1 / Nebula One.iso / Graphics / Plotting / aa_Intel_Only / Gnuplot / GnuplotSource / Gnuplot_main.m < prev    next >
Encoding:
Text File  |  1995-06-12  |  735 b   |  33 lines

  1. /*
  2.  *  Copyright (C) 1993  Robert Davis
  3.  *
  4.  *  This program is free software; you can redistribute it and/or
  5.  *  modify it under the terms of Version 2, or any later version, of 
  6.  *  the GNU General Public License as published by the Free Software 
  7.  *  Foundation.
  8.  */
  9.  
  10.  
  11. // $Id: Gnuplot_main.m,v 1.4 1993/05/04 16:22:08 davis Exp $
  12.  
  13. #import <appkit/Application.h>
  14. #import <stdlib.h>
  15. #import <strings.h>
  16.  
  17. extern gnu_main (int argc, char *argv[]);
  18.  
  19. void main(int argc, char *argv[]) {
  20.  
  21.     if ((argc > 1) && !strcmp (argv[1], "-c")) {
  22.     gnu_main (argc - 1, &(argv[1]));
  23.     exit(0);
  24.     }
  25.  
  26.     [Application new];
  27.     if ([NXApp loadNibSection:"Gnuplot.nib" owner:NXApp withNames:NO])
  28.         [NXApp run];
  29.         
  30.     [NXApp free];
  31.     exit(0);
  32. }
  33.